── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr 1.1.2 ✔ readr 2.1.4
✔ forcats 1.0.0 ✔ stringr 1.5.0
✔ ggplot2 3.4.2 ✔ tibble 3.2.1
✔ lubridate 1.9.2 ✔ tidyr 1.3.0
✔ purrr 1.0.1
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
Mi primer Quarto
Introducción:
Base de datos Dt y demas. E instalación de paquetes. `
Datos:
Libreria 1:
Libreria 2:
Attaching package: 'plotly'
The following object is masked from 'package:ggplot2':
last_plot
The following object is masked from 'package:stats':
filter
The following object is masked from 'package:graphics':
layout
Datos COVID Costa Rica
Rows: 816 Columns: 9
── Column specification ────────────────────────────────────────────────────────
Delimiter: ";"
chr (1): FECHA
dbl (8): positivos, nue_posi, fallecidos, nue_falleci, salon, UCI, RECUPERAD...
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
Delitos Costa Rica
Rows: 96651 Columns: 12
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (12): Delito, SubDelito, Fecha, Hora, Victima, SubVictima, Edad, Genero,...
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
Tablas de contenidos de los paquetes:
En estas tablas estan disponibles diversas caracteristicas de los paquetes de automoviles y de diamantes.
Automoviles disponibles:
Clasificación de diamantes:
Warning in instance$preRenderHook(instance): It seems your data is too big for
client-side DataTables. You may consider server-side processing:
https://rstudio.github.io/DT/server.html
Otra tabla:
Caso tabla COVID Costa Rica:
En este caso hay que aplicar un cambio de nombre a algunas columnas del Datafrme.
# A tibble: 816 × 9
fecha positivos activos recuperados fallecidos nuevos_positivos
<chr> <dbl> <dbl> <dbl> <dbl> <dbl>
1 06/03/2020 2 2 0 0 2
2 07/03/2020 7 7 0 0 5
3 08/03/2020 10 10 0 0 3
4 09/03/2020 12 12 0 0 2
5 10/03/2020 13 13 0 0 1
6 11/03/2020 22 22 0 0 9
7 12/03/2020 23 23 0 0 1
8 13/03/2020 26 26 0 0 3
9 14/03/2020 27 27 0 0 1
10 15/03/2020 35 35 0 0 8
# ℹ 806 more rows
# ℹ 3 more variables: nuevos_fallecidos <dbl>, salon <dbl>, uci <dbl>
Ahora, creamos ka tabla para covid Costa Rica
#! echo: false
covid_general |>
datatable(
options = list(
pageLength = 5,
language = list(url = '//cdn.datatables.net/plug-ins/1.10.11/i18n/Spanish.json')
)
)Tabla de Delitos Costa Rica:
Warning in instance$preRenderHook(instance): It seems your data is too big for
client-side DataTables. You may consider server-side processing:
https://rstudio.github.io/DT/server.html